using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.ComponentModel;
using ACME.Northwind.DataTransfer;
using System.Runtime.Serialization;

namespace ACME.Northwind.DataTransfer
{
	/// <summary>
	/// Object data transfer definition for the 'Order Details' table
	/// </summary>
	[Serializable()]
	[DataContract()]
	public partial class OrderDetailDTO : IDTO
	{
		#region Class Members

		#region FieldNameConstants Enumeration

		/// <summary>
		/// An enumeration of this object's fields
		/// </summary>
		public enum FieldNameConstants
		{
			 /// <summary>
			 /// Field mapping for the 'UnitPrice' property
			 /// </summary>
			[System.ComponentModel.Description("Field mapping for the 'UnitPrice' property")]
			UnitPrice,
			 /// <summary>
			 /// Field mapping for the 'Quantity' property
			 /// </summary>
			[System.ComponentModel.Description("Field mapping for the 'Quantity' property")]
			Quantity,
			 /// <summary>
			 /// Field mapping for the 'ProductId' property
			 /// </summary>
			[System.ComponentModel.Description("Field mapping for the 'ProductId' property")]
			ProductId,
			 /// <summary>
			 /// Field mapping for the 'OrderId' property
			 /// </summary>
			[System.ComponentModel.Description("Field mapping for the 'OrderId' property")]
			OrderId,
			 /// <summary>
			 /// Field mapping for the 'Discount' property
			 /// </summary>
			[System.ComponentModel.Description("Field mapping for the 'Discount' property")]
			Discount,
			 /// <summary>
			 /// Field mapping for the 'CreatedBy' property
			 /// </summary>
			[System.ComponentModel.Description("Field mapping for the 'CreatedBy' property")]
			CreatedBy,
			 /// <summary>
			 /// Field mapping for the 'CreatedDate' property
			 /// </summary>
			[System.ComponentModel.Description("Field mapping for the 'CreatedDate' property")]
			CreatedDate,
			 /// <summary>
			 /// Field mapping for the 'ModifiedBy' property
			 /// </summary>
			[System.ComponentModel.Description("Field mapping for the 'ModifiedBy' property")]
			ModifiedBy,
			 /// <summary>
			 /// Field mapping for the 'ModifiedDate' property
			 /// </summary>
			[System.ComponentModel.Description("Field mapping for the 'ModifiedDate' property")]
			ModifiedDate,
		}

		#endregion

		#endregion

		#region Constructors

		/// <summary>
		/// The default contructor for the OrderDetail DTO
		/// </summary>
		public OrderDetailDTO()
		{
		}

		#endregion

		#region Object Properties

		/// <summary>
		/// The Discount field
		/// </summary>
		[DataMember()]
		public virtual System.Single Discount { get; set; }
		/// <summary>
		/// The OrderId field
		/// </summary>
		[DataMember()]
		public virtual int OrderId { get; set; }
		/// <summary>
		/// The ProductId field
		/// </summary>
		[DataMember()]
		public virtual int ProductId { get; set; }
		/// <summary>
		/// The Quantity field
		/// </summary>
		[DataMember()]
		public virtual short Quantity { get; set; }
		/// <summary>
		/// The UnitPrice field
		/// </summary>
		[DataMember()]
		public virtual decimal UnitPrice { get; set; }
		/// <summary>
		/// The CreatedDate field
		/// </summary>
		[DataMember()]
		public virtual DateTime? CreatedDate { get; set; }
		/// <summary>
		/// The CreatedBy field
		/// </summary>
		[DataMember()]
		public virtual string CreatedBy { get; set; }
		/// <summary>
		/// The ModifiedDate field
		/// </summary>
		[DataMember()]
		public virtual DateTime? ModifiedDate { get; set; }
		/// <summary>
		/// The ModifiedBy field
		/// </summary>
		[DataMember()]
		public virtual string ModifiedBy { get; set; }

		#endregion

	}

}
